<template>
  <div class="recommends">
    <div v-for="item in recommends" :key="item.acm" class="recommends-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{ item.title }}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
name: 'recommends',
  components: {},
  props: {
    recommends: {
      type:Array,
      default(){
        return []
      }
    }
  },
  data() {
    return {
    };
  },
  watch: {},
  computed: {},
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style lang="less" scoped>
.recommends{
  display: flex;
  width: 100vw;
  padding: 1vh 0 3vh 0;
  border-bottom: 8px solid rgba(110, 110, 110,.1);
  .recommends-item{
    flex: 1;
    a{
      display: block;
      text-align: center;
      font-size: 1rem;
      img{
        display: block;
        width: 80%;
        height: 80%;
        margin: 0 auto;
        margin-bottom: 2px;
      }
      div{
        vertical-align: bottom;
      }
    }
  }
}
</style>